package edu.scau.pro.hotel.entity;

/**
 * 该类用于封装HotelCheckIn和HotelCustomer实体类，
 * 和几个退房界面“操作”属性：总金额（totalMoney）、付款方式（paymentWay）、退/补款（extraMoney），
 * 主要用于退房业务，对应退房对话框中的数据封装，在退房界面显示
 */

public class CheckoutForm {

    private HotelCheckin hotelCheckin;

    private HotelCustomer hotelCustomer;

//    private HotelType hotelType;

    private HotelRoom hotelRoom;

    private double totalRoomMoney;

    private String paymentWay;

    private double extraMoney;

    public HotelCheckin getHotelCheckin() {
        return hotelCheckin;
    }

    public void setHotelCheckin(HotelCheckin hotelCheckin) {
        this.hotelCheckin = hotelCheckin;
    }

    public HotelCustomer getHotelCustomer() {
        return hotelCustomer;
    }

    public void setHotelCustomer(HotelCustomer hotelCustomer) {
        this.hotelCustomer = hotelCustomer;
    }

//    public HotelType getHotelType() {
//        return hotelType;
//    }
//
//    public void setHotelType(HotelType hotelType) {
//        this.hotelType = hotelType;
//    }

    public HotelRoom getHotelRoom() {
        return hotelRoom;
    }

    public void setHotelRoom(HotelRoom hotelRoom) {
        this.hotelRoom = hotelRoom;
    }

    public double getTotalRoomMoney() {
        return totalRoomMoney;
    }

    public void setTotalRoomMoney(double totalRoomMoney) {
        this.totalRoomMoney = totalRoomMoney;
    }

    public String getPaymentWay() {
        return paymentWay;
    }

    public void setPaymentWay(String paymentWay) {
        this.paymentWay = paymentWay;
    }

    public double getExtraMoney() {
        return extraMoney;
    }

    public void setExtraMoney(double extraMoney) {
        this.extraMoney = extraMoney;
    }

    @Override
    public String toString() {
        return "CheckoutForm{" +
                "hotelCheckin=" + hotelCheckin +
                ", hotelCustomer=" + hotelCustomer +
//                ", hotelType=" + hotelType +
                ", hotelRoom=" + hotelRoom +
                ", totalRoomMoney=" + totalRoomMoney +
                ", paymentWay='" + paymentWay + '\'' +
                ", extraMoney=" + extraMoney +
                '}';
    }
}
